package com.pajk.user.api.http;

import org.testng.Assert;
import org.testng.annotations.Test;

import com.pajk.test.api.BaseTest;
import com.pajk.test.client.ContextHelper;
import com.pingan.jk.api.request.ApiCode;
import com.pingan.jk.api.request.User_RequestSafetyQuestionsForTrustDevice;
import com.pingan.jk.api.resp.Api_USER_SafetyQuestions;
import com.pingan.jk.client.ApiContext;
import com.pingan.jk.client.BaseRequest;

public class User_RequestSafetyQuestionsForTrustDeviceIT extends BaseTest{
	@Test(description="user.requestSafetyQuestionsForTrustDevice 为获取受信设备请求安全问题 SecurityType.MobileOwner")
	public void requestSafetyQuestionsForTrustDeviceTest(){
		ApiContext context = super.mobileOwner();
		
		User_RequestSafetyQuestionsForTrustDevice req = new User_RequestSafetyQuestionsForTrustDevice();
		ContextHelper.sendRequest(context, new BaseRequest[] { req });
		Assert.assertEquals(req.getReturnCode() , ApiCode.SUCCESS);
		
		Api_USER_SafetyQuestions res = req.getResponse();
		Assert.assertNotNull(res);
		System.out.println(res.questionUID);
		//System.out.println(res.questionsList);
	}
}
